package com.author.surface;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JEditorPane;
import javax.swing.border.LineBorder;

import com.author.document.view.PageConstants;

public final class Header extends JEditorPane {
	/** Width of the header */
	public final static int		WIDTH			= PageConstants.PAGE_WIDTH;

	/** Height of the header */
	public final static int		HEIGHT			= 39;

	/** Border color */
	public final static Color	BORDER_COLOR	= Color.lightGray;

	/** Font of the header */
	public final static Font	font			= new Font("Monospaced",
														Font.PLAIN, 15);

	public Header() {

		/* Set size */
		this.setSize(WIDTH, HEIGHT);
		this.setPreferredSize(getSize());

		/* Set font */
		this.setFont(font);

		/* Set border */
		this.setBorder(new LineBorder(BORDER_COLOR));
	}
}
